﻿using Duo1JHttpServer.Framework.Model;

namespace Duo1JHttpServer.Framework.Interface
{
    /// <summary>
    /// http请求处理器接口
    /// </summary>
    public interface IHttpHandle
    {
        /// <summary>
        /// Get请求处理
        /// </summary>
        public void HandleGet();

        /// <summary>
        /// Post请求处理
        /// </summary>
        public void HandlePost();

        /// <summary>
        /// 初始化http请求模型
        /// </summary>
        /// <param name="model">http请求模型</param>
        public void SetModel(RequestModel model);
    }
}